<template>
  <view class="homeview">
    <cu-custom
      bg-color="home-title-bg"
      :is-back="false"
    >
      <block slot="content">
        首页
      </block>
    </cu-custom>
  </view>
</template>

<script>
import { trademock } from '@/config/mock'
import eventbus from '@/common/emitter'
export default {
  data() {
    return {}
  },
  methods: {
    queryData() {
      let _this = this
    },
  },
  onReachBottom() {},
  onPullDownRefresh() {
    this.queryData()
  },
  onLoad(config) {
    // let { statistics, tlab } = trademock
    // this.tradelist = tlab
    eventbus.on('loginSuccess', () => {
      this.queryData()
    })
    return
  },
}
</script>

<style lang="scss">
page {
  background: #f5f5f9;
}
.homeview {
  .home-title-bg {
    background: #14d4e2;
    z-index: 2;
    color: #fff;
  }
}
</style>
